package com.example.miaosha.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.miaosha.entity.MiaoShaGoods;
import com.example.miaosha.mapper.MiaoShaGoodsMapper;
import com.example.miaosha.service.IMiaoShaGoodsService;
import com.example.miaosha.vo.MiaoShaGoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 秒杀商品service实现类
 * @author kangnan
 * @date 2021/5/21 0:55
 **/
@Service("miaoshaGoodsService")
public class MiaoShaGoodsImpl extends ServiceImpl<MiaoShaGoodsMapper, MiaoShaGoodsVo> implements IMiaoShaGoodsService {

    @Autowired
    public MiaoShaGoodsMapper miaoShaGoodsMapper;

    @Override
    public List<MiaoShaGoodsVo> listAll() {
        return miaoShaGoodsMapper.listAll();
    }

    @Override
    public MiaoShaGoods findById(Integer id) {
        return miaoShaGoodsMapper.findById(id);
    }
}
